package com.hzlj.position.config.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fz.common.base.converter.QueryWrapperConverterPlus;
import com.hzlj.position.config.common.dto.operatorConfig.OperatorConfigQueryResultDTO;
import com.hzlj.position.config.common.model.OperatorConfig;
import com.hzlj.position.config.mapper.OperatorConfigMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 定位-运营商配置表(OperatorConfig)表操作类
 *
 * @author lifh
 * @date 2023-03-30 17:51:33
 */
@Repository
public class OperatorConfigDao extends ServiceImpl<OperatorConfigMapper, OperatorConfig> {
    @Resource
    private OperatorConfigMapper operatorConfigMapper;


    /**
     * 查询列表：不分页
     */
    public List<OperatorConfigQueryResultDTO> listOperatorConfig() {
        return QueryWrapperConverterPlus.of(operatorConfigMapper)
                .list(OperatorConfigQueryResultDTO.class, null);
    }
}

